<?php
/**
 * 周舟 hzboye010@163.com
 * addby sublime snippets
 * 论坛板块 测试类
 */
namespace app\test\controller;

use app\utils\BoyeService;
use app\test\controller\Ava;
class ForumForum extends Ava{

    //论坛版块分页
    public function query(){
        if(IS_AJAX){

            $data = [
                'up_fid'       =>I('post.up_fid',''),
				// 'num'       =>I('post.num',''),
				// 'fid'       =>I('post.fid',''),
                'api_ver'   =>$this->api_ver,
                'notify_id' =>$this->notify_id,
                'alg'       =>$this->alg,
                'type'      =>'BY_ForumForum_query',
            ];
            $service = new BoyeService();
            $result = $service->callRemote("",$data,true);
            echo $this->parseResult($result);

        }else{
            $this->assign('type','BY_ForumForum_query');
            $this->assign('field',[
                ['api_ver',$this->api_ver,LL('need-mark api version')],
                ['up_fid',0,LL('upgrade block ID')],
                // ['fid','',LL('show block ID')],
                // ['num',10,LL('show thread count')],
            ]);
            echo $this->display('ava/test');
        }

    }
}